<?php include('_init_.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../css/admin-body.css" rel="stylesheet" type="text/css" />
<link href="../css/admin-epaper.css" rel="stylesheet" type="text/css" />
<title>班尼頓寫真後台管理</title>
</head>

<body>
<?php include_once('admin-top.php');?>
<div id="main" class="clearfix"><!-- star #main //-->
  <?php include_once('sub-epaper.php');?>
  <div id="contactall"><!-- star #main //-->
  <div id="tit" ><!-- star #tit //-->
    <ul>
    <li class="tit-a">完成發送電子報列表</li>
    <li class="tit-b"></li>
    </ul>
  </div><!-- end #tit //-->
  <div id="contact" class="clearfix" ><!-- star #contact //-->
  <ul>
  <li class="peo-a">發送日期</li>
  <li class="peo-c">主旨</li>
  <li class="peo-e">功能</li>
  </ul>
  <?php foreach($GLOBALS['PAGE_LIST_DATA'] as $row):?>
    <ul>
  <li class="peo-a"><?php  echo $GLOBALS['APP_INSTANCE']->formatDate($row['send_datetime'],'Y-m-d A g:00');?></li>
  <li class="peo-c"><?php echo $row['epaper_subject']?></li>
  <li class="peo-e">
  <a href="epaper-ok.php?act=delete&id=<?php echo $row['id'];?>" onclick="return confirm('確定刪除?');">刪除</a>
  </li>
  </ul>
  <?php endforeach;?>
  
  
  </div><!-- end #contact //-->
   <div id="page">
  <ul>
     <?php if ( $GLOBALS['PAGE_LIST_PAGE'] < $GLOBALS['PAGE_LIST_TOTAL_PAGE']):?>
    <li><a href="#" onclick="return next_page();">以前の &gt;</a> </li>
     <?php endif;?>
     
    <?php if ( $GLOBALS['PAGE_LIST_PAGE'] > 1):?>
    <li> <a href="#" onclick="return prev_page();"> &lt;次の </a> </li>
     <?php endif;?>
  </ul>
</div>
  </div><!-- end #contactall //-->
</div><!-- end #main //-->
<script type="text/javascript">
function next_page()
{
	var form = document.forms['form_filter'];
	form.page.value = parseInt(form.page.value,10) + 1;
	form.submit();
	return false;
}
function prev_page()
{
	var form = document.forms['form_filter'];
	form.page.value =  parseInt(form.page.value,10) - 1;
	form.submit();
	return false;
}

</script>
<form method="get" name="form_filter" action="<?php echo $_SERVER['PHP_SELF']?>">
<input type="hidden" name="page" value="<?php echo $_REQUEST['page'];?>"/>
<input type="hidden" name="cat_id" value="<?php echo isset($_REQUEST['cat_id']) && $_REQUEST['cat_id'] > 0?$_REQUEST['cat_id']:'';?>"/>
</form>
</body>
</html>